import prompt from '@system.prompt';
import router from '@system.router';
// index.js

export default {
    data: {
        loginText:'登录页面',
        num: 0,
        acc:'',
        password:''
    },
    launch() {
        router.push({
            uri: 'pages/mypage/mypage', // 指定要跳转的页面
        })
    },

    loginAccount(event){
        this.acc = event.value
    },
    loginPass(event){
        this.password = event.value
    },

    login(){
        if (this.password == '1000') {
            router.push({
                uri:'pages/mypage/mypage',
                params:{
                    userAcc:this.acc,
                    userPass:this.password
                }
            })
        }else{
            prompt.showToast({
                message:"密码错误"
            })
        }
    }



}